package com.humingzhang.client.fastdfs;

import com.humingzhang.client.FileConfig;

import java.util.List;

/**
 * FastDFS 配置
 *
 * @author minghu.zhang
 */
public class FastDfsConfig implements FileConfig {

    /**
     * 分组名称
     */
    private String groupName;
    private List<String> trackerIpList;
    private String trackerHttpPort;
    private String fastDfsSecretKey;

    public FastDfsConfig(String groupName, List<String> trackerIpList, String trackerHttpPort, String fastDfsSecretKey) {
        this.groupName = groupName;
        this.trackerIpList = trackerIpList;
        this.trackerHttpPort = trackerHttpPort;
        this.fastDfsSecretKey = fastDfsSecretKey;
    }

    public FastDfsConfig() {
    }

    public String getGroupName() {
        return groupName;
    }

    public FastDfsConfig setGroupName(String groupName) {
        this.groupName = groupName;
        return this;
    }

    public List<String> getTrackerIpList() {
        return trackerIpList;
    }

    public FastDfsConfig setTrackerIpList(List<String> trackerIpList) {
        this.trackerIpList = trackerIpList;
        return this;
    }

    public String getTrackerHttpPort() {
        return trackerHttpPort;
    }

    public FastDfsConfig setTrackerHttpPort(String trackerHttpPort) {
        this.trackerHttpPort = trackerHttpPort;
        return this;
    }

    public String getFastDfsSecretKey() {
        return fastDfsSecretKey;
    }

    public FastDfsConfig setFastDfsSecretKey(String fastDfsSecretKey) {
        this.fastDfsSecretKey = fastDfsSecretKey;
        return this;
    }

    @Override
    public String toString() {
        return "FastDfsConfig{" +
                "groupName='" + groupName + '\'' +
                ", trackerIpList=" + trackerIpList +
                ", trackerHttpPort='" + trackerHttpPort + '\'' +
                ", fastDfsSecretKey='" + fastDfsSecretKey + '\'' +
                '}';
    }
}
